import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path:'/home' ,
        component:()=>import('@/pages/home/index.vue')
    },
    {
        path:'/hospital',
        component:()=>import('@/pages/hospital/index.vue')
    },
    {
        path:'/' ,
        redirect:'/home'
    }
]
export const router = createRouter({
    history:createWebHashHistory(),
    routes,
    scrollBehavior(){
        return {
            top:0
        }
    }
})